﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Core.IBusiness.IPushModule.Model
{
    /// <summary>
    /// 订单已支付消息推送
    /// </summary>
    public class OrderAlreadyPayModel: BaseShopPush<OrderAlreadyPayContent>
    {

    }

    public class OrderAlreadyPayContent 
    {
        /// <summary>
        /// 消息类型
        /// </summary>
        public string Type
        {
            get
            {
                return "order-already-pay";
            }
        }

        /// <summary>
        /// 订单模型
        /// </summary>
        public OrderModel Order { get; set; }

        /// <summary>
        /// 产品信息
        /// </summary>
        public List<ProductModel> Products { get; set; }

        /// <summary>
        /// 付款模型
        /// </summary>
        public OrderPayModel OrderPay { get; set; }
    }


    public class OrderModel 
    {
        /// <summary>
        /// 订单关键字
        /// </summary>
        public int Id { get; set; }
    }

    public class ProductModel
    {
        /// <summary>
        /// 展示图
        /// </summary>
        public string Img { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string Title { get; set; }
    }

    public class OrderPayModel
    {
        /// <summary>
        /// 付款金额
        /// </summary>
        public decimal Payment { get; set; }

        /// <summary>
        /// 付款信息
        /// </summary>
        public string Info { get; set; }
    }

}
